package com.tedu.util.response;

import lombok.Getter;
/**
 * @date 2023/4/19
 * @author liuhuan
 */
@Getter
public enum AppCode {
   SUCCESS(200,"请求成功"),
    FAILED(1001,"请求失败"),
   VALIDATE_ERROR(1002,"参数校验失败"),
   RESPONSE_ERROR(1003,"response返回包装失败"),

   APP_ERROR(5000,"业务异常"),
   USER_NOT_FOUND(5001,"用户不存在"),
   ;

   private int code;
   private String msg;

    AppCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
